{#**
 * 2007-2017 PrestaShop
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to http://www.prestashop.com for more information.
 *
 * @author    PrestaShop SA <contact@prestashop.com>
 * @copyright 2007-2017 PrestaShop SA
 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
 * International Registered Trademark & Property of PrestaShop SA
 *#}
{% extends 'PrestaShopBundle:Admin:layout.html.twig' %}

{% block content %}
<div class="search-translation container-fluid">
  <div class="row">
    <h2 class="col-md-9">{{ 'Search translations'|trans({}, 'Admin.International.Feature') }}</h2>
    <div class="summary col-md-3">
      <strong><span data-template="{{ total_translations }}" class="total-translations"></span></strong>
      <span class="hide separator"> - </span>
      <span data-template="{{ total_remaining_translations }}" class="total-remaining-translations"></span>
    </div>
  </div>
  <form class="row">
    <div class="col-md-9">
        <label>{{ '(2 characters at least)'|trans({}, 'Admin.International.Feature') }}</label>
        <input class="form-control search"
               pattern=".{2,}"
               placeholder="{{ 'Search a word or expression, e.g.: \"Order confirmation\"'|trans({}, 'Admin.International.Help') }}"
               type="search"
               id="jetsSearch"
        />
    </div>
    <div class="col-md-3 m-t-1 p-t-1">
        <input class="btn btn-primary search-button" type="submit" value="{{ 'Search'|trans({}, 'Admin.Actions') }}" />
        <input class="btn btn-tertiary-outline" type="reset" value="{{ 'Reset'|trans({}, 'Admin.Actions') }}" />
    </div>
  </form>
  <div class="hide alert alert-warning">
    <i class="material-icons">info_outline</i>
    <span>{{ 'No results found'|trans({}, 'Admin.Notifications.Error') }}</span>
  </div>
  <div class="translations-results js-results">
    <h2 class="hide">{{ 'Search Results'|trans({}, 'Admin.Global') }}</h2>
    {% include 'PrestaShopBundle:Admin/Translations/include:translations-forms.html.twig' with { 'editable' : editable } %}
  </div>
</div>

<form method="post" id="messages-fragments" action="{{ path('admin_international_translations_messages_fragments') }}">
  <input type="hidden" name="lang" value="{{ requestParams.lang }}">
  <input type="hidden" name="type" value="{{ requestParams.type }}">
  <input type="hidden" name="theme" value="{{ requestParams.theme }}">
</form>

<div class="container-fluid">
  <div class="row">
    {% include 'PrestaShopBundle:Admin/Translations/include:translations-tree.html.twig' %}
    <div class="translation-domains col-xs-9">
      <h1 id="domain">
        <span class="name"></span>
        <span class="separator hide">-</span>
        <span class="total-expressions"></span>
        <span class="separator hide">-</span>
        <span class="missing-translations"></span>
      </h1>
      <p class="missing-translations-paragraph"></p>
      <div class="navbar-container pull-right"></div>
      {% if not editable %} <fieldset disabled="disabled"> {% endif %}
        <div class="forms-container">
        </div>
      {% if not editable %} </fieldset> {% endif %}
    </div>
  </div>
</div>
{% endblock %}
